<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="/WEB-INF/templates/template.xhtml">

	<ui:define name="content">

		<h:head>
			<h1>Add a car</h1>
		</h:head>
		<body>
			<f:view>
				<h:form>
					<table>
						<tr>
							<td><h:outputLabel value="Class" /></td>
							<td><h:inputText id="car_class" required="true" /></td>
						</tr>

						<tr>
							<td><h:outputLabel value="Model" /></td>
							<td><h:inputText id="car_model" required="true" /></td>
						</tr>

						<tr>
							<td><h:outputLabel value="Color" /></td>
							<td><h:inputText id="car_color" required="true" /></td>
						</tr>

						<tr>
							<td><h:outputLabel value="Year" /></td>
							<td><h:inputText id="car_year" required="true" /></td>
						</tr>

						<tr>
							<td><h:outputLabel value="Number" /></td>
							<td><h:inputText id="car_number" required="true" /></td>
						</tr>

						<tr>
							<td><h:outputLabel value="Date start" /></td>
							<td><h:inputText id="car_date_start" required="true" /></td>
						</tr>

						<tr>
							<td><h:outputLabel value="Mileage" /></td>
							<td><h:inputText id="car_mileage_start" required="true" /></td>
						</tr>

						<tr>
							<td><h:outputLabel value="Vin" /></td>
							<td><h:inputText id="car_vin" required="true" /></td>
						</tr>

						<tr>
							<td><h:outputLabel value="Status" /></td>
							<td><h:inputText id="car_status" required="true" /></td>
						</tr>


					</table>


				</h:form>
				
				<div id="Command">
					<h:form>
						<h:commandButton action="#{carMB.prepareAddCar}" value="Back to list" />
						<h:commandButton action="#{carMB.prepareAddCar}" value="Save" />
					</h:form>
				</div>
				


			</f:view>
		</body>
	</ui:define>
</ui:composition>
</html>